import common from './common'
import paths from './paths'

const formService = {};

(function (service) {
    service.getFormRevisionById = function (formRevisionId) {
        return common.get(paths.form.getFormRevisionById, { formRevisionId: formRevisionId })
    }

    service.listFormRevisionByFormId = function (formId) {
        return common.get(paths.form.listFormRevisionByFormId, { formId: formId })
    }
    service.searchForm = () => {
      return common.post(paths.form.searchForm, null, {
        filterText: 'HTML表单',
        pageIndex: 1,
        pageSize: 9999
      })
    }
})(formService)
export default formService
